home *** CD-ROM | disk | FTP | other *** search
/ HPAVC / HPAVC CD-ROM.iso / pc / SATAN11.ZIP / SRC / PORT_SCA / MAKEFILE < prev    next >
Encoding:
Text File  |  1995-04-07  |  949 b   |  35 lines

  1. SHELL    = /bin/sh
  2. BIN    = ../../bin
  3. TCP_SRC    = tcp_scan.c find_addr.c mallocs.c non_blocking.c \
  4.         print_data.c open_limit.c error.c strerror.c
  5. TCP_OBJ    = tcp_scan.o find_addr.o mallocs.o non_blocking.o \
  6.         print_data.o open_limit.o error.o strerror.o
  7. UDP_SRC    = udp_scan.c find_addr.c mallocs.c open_limit.c error.c ring.c \
  8.         strerror.c
  9. UDP_OBJ    = udp_scan.o find_addr.o mallocs.o open_limit.o error.o ring.o \
  10.         strerror.o
  11. CFLAGS    = -O $(XFLAGS)
  12. FILES    = README tcp_scan.1 error.c find_addr.c lib.h makefile mallocs.c \
  13.     non_blocking.c open_limit.c print_data.c tcp_scan.c udp_scan.c ring.c \
  14.     strerror.o
  15. PROGS    = $(BIN)/tcp_scan $(BIN)/udp_scan
  16. #LIBS    = -lsocket -lnsl
  17.  
  18. all: $(PROGS)
  19.  
  20. $(BIN)/tcp_scan: $(TCP_OBJ)
  21.     $(CC) $(CFLAGS) -o $@ $(TCP_OBJ) $(LIBS)
  22.  
  23. $(BIN)/udp_scan: $(UDP_OBJ)
  24.     $(CC) $(CFLAGS) -o $@ $(UDP_OBJ) $(LIBS)
  25.  
  26. shar:
  27.     @shar $(FILES)
  28.  
  29. lint:
  30.     lint $(TCP_SRC)
  31.     lint $(UDP_SRC)
  32.  
  33. clean:
  34.     rm -f *.o $(PROGS) core
  35.